/**
 * Copyright &copy; 2016-2017 <a href="https://www.lczyfz.com">联创智云</a> All rights reserved.
 */
package com.lczyfz.campusinfo.modules.campusinfocompany.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lczyfz.campusinfo.common.persistence.Page;
import com.lczyfz.campusinfo.common.service.CrudService;
import com.lczyfz.campusinfo.modules.campusinfocompany.entity.CampusinfoCompany;
import com.lczyfz.campusinfo.modules.campusinfocompany.dao.CampusinfoCompanyDao;

/**
 * 公司管理Service
 * @author zms
 * @version 2018-04-17
 */
@Service
@Transactional(readOnly = true)
public class CampusinfoCompanyService extends CrudService<CampusinfoCompanyDao, CampusinfoCompany> {
	@Autowired
	private CampusinfoCompanyDao campusinfoCompanyDao;
	public CampusinfoCompany get(String id) {
		return super.get(id);
	}
	
	public List<CampusinfoCompany> findList(CampusinfoCompany campusinfoCompany) {
		return super.findList(campusinfoCompany);
	}
	public Page<CampusinfoCompany> findPage(Page<CampusinfoCompany> page, CampusinfoCompany campusinfoCompany) {
		return super.findPage(page, campusinfoCompany);
	}
	
	@Transactional(readOnly = false)
	public void save(CampusinfoCompany campusinfoCompany) {
		super.save(campusinfoCompany);
	}
	public CampusinfoCompany getByCompanyname(CampusinfoCompany campusinfoCompany) {
		return campusinfoCompanyDao.getByName(campusinfoCompany);
	}
	@Transactional(readOnly = false)
	public void delete(CampusinfoCompany campusinfoCompany) {
		super.delete(campusinfoCompany);
	}
	
}